package com.example.sth0409.viewdraghelperapplication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {
    private VDHLayout vdhLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        vdhLayout = findViewById(R.id.vdh_layout);
        vdhLayout.setOnDragUpListener(new VDHLayout.onDragUpListener() {
            @Override
            public void onLeft(View view) {
                Toast.makeText(MainActivity.this, "onLeft", Toast.LENGTH_SHORT).show();
            }

            @Override
            public void onRight(View view) {
                Toast.makeText(MainActivity.this, "onRight", Toast.LENGTH_SHORT).show();
            }
        });
    }
}
